// $(function () {

    var url="https://www.fastmock.site/mock/428fc58e170ef636dc145b067592c3c8/test/search/hot";
    var hotsearch_div=$("#hotsearch");
    var extension_hot_dt=$("#extension_hot");
    log(hotsearch_div);
    getHotSearchData(extension_hot_dt);


// });
function getHotSearchData(element) {
    console.log(element)
    $.get(url,function (data) {
        if(data.code=="0"){
            var hot_search_array=data.data;
            $(hot_search_array).each(function (index,item) {
                console.log(index)
                $(element).append(
                 '<dt>' +
                    '<a href="'+item.href+'">'+item.title+'</a>' +
                    '</dt>'
                )
            })
            log(hot_search_array);


        }else{
            alert("error")
        }
    })
}